import {get, post, del, put} from "@/apis/http/request";
import {SysAdminVerify} from "@/apis/model/order/SysAdminVerifyModel";

/**
* 得到列表
* @param params
*/
export const getSysAdminVerifyList = (params: any) => get("/sysAdminVerify/list", params)
export const getSysAdminVerify = (id: any) => get("/sysAdminVerify/"+ id)

/**
* 得到分页列表
* @param params
*/
export const sysAdminVerifyPage = (params: any) => post("/sysAdminVerify/page", params)
export const sysAdminVerifyExportPage = (params: any) => post("/sysAdminVerify/pageExports", params,{  responseType: "blob", })

/**
* 删除数据
* @param id
* @returns
*/
export const deleteSysAdminVerifyById = (id: number) => del("/sysAdminVerify/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertSysAdminVerify = (param: SysAdminVerify) => post("/sysAdminVerify", param)
export const operUserMonthVerify = (param: SysAdminVerify) => post("/sysAdminVerify/operUserMonthVerify", param)
export const operUserYearVerify = (param: SysAdminVerify) => post("/sysAdminVerify/operUserYearVerify", param)

/**
* 更新数据
* @param param
*/
export const updateSysAdminVerify = (param: SysAdminVerify) => put("/sysAdminVerify", param)

/**
 * 核销单子
 * @param param
 */
export const verifyOrders = (param: SysAdminVerify) => post("/sysAdminVerify/verifyOrders", param)
/**
 * 提现
 * @param param
 */
export const tixianOrders = (param: SysAdminVerify) => post("/sysAdminVerify/tixianOrders", param)
